package com.requestfactory.wire;

public final class WireRuntimeException extends RuntimeException {

	private static final long serialVersionUID = 20080916004618L;
	
	private final WireError wireError;

	public WireRuntimeException(WireError wireError, Throwable cause) {
		super(cause);
		assert wireError != null;
		this.wireError = wireError;
	}
	
	public WireRuntimeException(WireError wireError, String message,
			Throwable cause) {
		super(message, cause);
		assert wireError != null;
		this.wireError = wireError;
	}

	public WireRuntimeException(WireError wireError, String message) {
		super(message);
		assert wireError != null;
		this.wireError = wireError;
	}

	public WireError getWireError() {
		return wireError;
	}

}
